import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home'
import Workbench from '@/views/Workbench'
Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path:'/',
      redirect:'/workbench'
    },
    {
      path: '/home',
      name: 'Home',
      component: Home,
      children:[
        {path:'/',component:Home},
        {path:'/workbench',component:Workbench},
      ]
    }
  ]
})
